@page
@{ Layout = "_LayoutApp"; }
@section Styles{
    <style>
        body {
            margin: 0;
            padding: 0;
        }
    </style>
}
<div class="p-3" v-if="total>0">
    <div v-for="(paper,index) in list">
        <div class="card shadow-none rounded-0 card-hover-with-bl border-top-0 border-end-0 border-bottom-0 mb-3">
            <div class="card-body">
                <div class="row align-items-center g-3">
                    <div class="col">
                        <p class="my-2 fw-bold">
                            {{ paper.title }}
                        </p>
                        <ul class="list-inline m-0 fw-light">
                            <li class="list-inline-item">
                                <i class="el-icon-date me-2"></i><span>{{ paper.examStartDateTimeStr }}-{{ paper.examEndDateTimeStr }}</span>
                            </li>
                            <li class="list-inline-item" v-if="paper.configId>0">
                                <i class="bi bi-person-check me-2"></i>结果：{{ paper.configName }}
                            </li>
                        </ul>
                        <div class="mt-3 text-center">
                            <el-button class="rounded-pill" type="success" icon="el-icon-s-order" disabled v-if="paper.submitType==='Submit'">已提交</el-button>
                            <el-button class="rounded-pill" type="warning" plain icon="el-icon-s-order" v-on:click.stop="btnViewClick(paper)" v-else>开始测评</el-button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="my-5 text-center">
        <el-button class="rounded-0" size="small" icon="el-icon-refresh-right" v-if="list.length>0 && list.length<total" v-on:click="btnLoadMoreClick" :loading="loadMoreLoading">加载更多</el-button>
        <small v-else>没有更多了</small>
    </div>
    <div class="py-8"></div>
</div>
<div class="pt-8" v-else>
    <el-empty :image-size="88"></el-empty>
</div>
@section Scripts{
    <script src="/sitefiles/assets/js/app/exam/examAssessment.js" type="text/javascript"></script>
}